import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";
//引用
const routes:Array<RouteRecordRaw>=[
    {
        path:"/",
        name:"addLogin",
        component:()=>import("../vitew/addLogin.vue")
    },
    {
        path:"/showLogin",
        name:"showLogin",
        component:()=>import("../vitew/showLogin.vue")
    },
]

const router = createRouter({
    //声明
    history:createWebHistory(),
    routes
})

export default router;//暴露出去